<#include "/view/common/command/para.html">
<div class="zs-ibox"   ng-style="{height:(Map_H-100)+'px'}" style="overflow: auto;">
	<div style="float: left;" class="commonPanel">
		<table class="zs-form-tab">
            <tbody>
            	<tr>
                    <td class="right" style="vertical-align: top;width:60px;">状态说明：</td>
                    <td> 
	                    <ul class="zs-data-sizer">
                    		<li class="noaccept">未验收 </li>
                    		<li class="acceptpass">验收通过 </li>
                    		<li class="acceptfail">验收未通过 </li>
	                    </ul>
	                 </td>
                </tr>
            	<tr>
                    <td class="right" style="vertical-align: top;">选择站点：</td>
                    <td rowspan="4" >
                    	<ul id="ulStation" class="zs-data-sizer">
                    		<li ng-repeat="curRow in httpData.stationListPS.data"
                    		class="{{ $index==0 ? 'selected':'' }}" stationCode="{{curRow.CODE}}">
                    			<a href="#" ng-click="refreshAcceptData(curRow.CODE)" class="{{curRow.STATUS}}">
                    			<span>{{curRow.NAME}}</span></a>
                    		</li>
                        </ul>
                    </td>
                </tr>
              </tbody>
         </table>
  	</div>
	<div style="float: right;">	
    	<input type="button" name="OK" ng-click="newAcceptInfo()"  value="验收" class="zs-btn" 
    	ng-show="httpData.deviceAcceptanceList.pageInfo.rowCount>0 && isShowAccept">
    	<input type="button" name="OK" ng-click="newAcceptInfo()"  value="重新验收" class="zs-btn" 
    	ng-show="httpData.deviceAcceptanceList.pageInfo.rowCount>0 && isShowReAccept"">
    	<input type="button" name="OK" ng-click="showAcceptList()"  value="验收记录" class="zs-btn" 
    	ng-show="httpData.deviceAcceptanceList.pageInfo.rowCount>0  && !isShowAccept">
  	</div>
	<table class="zs-data-tab" width="100%">
		<thead>
			<tr>
				<th class="head">所属站点</th>
				<th class="head">设备类型</th>
				<th class="head">设备名称</th>
				<th class="head">出厂编号</th>
				<th class="head">设备型号</th>
				<th class="head">验收状态</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="curRow in httpData.deviceAcceptanceList.data"
				class="{{ isDoubleNum($index) ? 'even':'' }}">
				<td class="center"><a><label ng-bind="curRow.STATION_NAME"></label></a></td>
				<td class="center">{{curRow.DEVICE_TYPE=='0'?'数采仪':'在线监测设备'}}</td>
				<td class="center"><a><label ng-bind="curRow.DEVICE_NAME"></label></a></td>
				<td class="center"><a><label ng-bind="curRow.DEVICE_NUM"></label></a></td>
				<td class="center"><a><label ng-bind="curRow.SBXH"></label></a></td>
				<td class="center"><a><label ng-bind="curRow.STATUS"></label></a></td>
			</tr>
		</tbody>
	</table>
</div>

<div itfreer-Window id="acceptDevice" title="验收信息" width='800' height='580'>
	<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/deviceAccept/acceptInfo.html">
</div>
<div itfreer-Window id="acceptDeviceList" title="验收记录" width='800' height='580'>
	<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/deviceAccept/acceptRecordList.html">
</div>

